package com.ye.study.enums;

import java.util.function.Function;

public enum TrafficLightEnum1 {
    RED(s -> "红色") ;


    private final Function<String ,String> A;

    public Function<String, String> getA() {
        return A;
    }

    TrafficLightEnum1(Function<String, String> a) {
        A = a;
    }

    public static void main(String[] args) {
        System.out.println(TrafficLightEnum1.RED);
    }
}
